package com.kaifamiao.www.demo.do0905;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Demo03 {
    public static void main(String[] args) {

    }
    public static void test(){
        try {
            Class.forName("com.mysql.cj.jdbc.Driver");
            String url = "jdbc:mysql://localhost:3306/kfm";
            String user = "root";
            String password = "";
            Connection connection = DriverManager.getConnection(url,user,password);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}
